package com.gitee.srurl.core.properties;

import com.gitee.srurl.core.properties.id_gen.DoubleDuplicateDetection;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zxw
 * @date 2023/4/26 22:33
 */
@Data
@Component
@ConfigurationProperties(prefix = "short-url.id-gen")
public class IdGenProperties {

    private String useType;

    private Boolean alwaysNewUrl;

    private String duplicateDetection;

    private List<String> disabledStrategy;

    // 采用注入IOC容器的方式 其实也可以通过bean name和类型获取 但是目前设置的是只有一个类 通过类型获取
//    private String dataStore;

    private List<String> configCache;

    private String domainSelector;

    private DoubleDuplicateDetection doubleDuplicateDetection;
}
